//
//  CoinRecordViewController.swift
//  Exchange
//
//  Created by 孟祥群 on 2018/5/22.
//  Copyright © 2018年 common. All rights reserved.
//

import UIKit

class CoinRecordViewController: BaseViewController {
    lazy var coinTransView:BaseView = {
        let view = CoinRecordView(dataSource: nil)
        
        return view
    }()
    
    lazy var receiveBtn:UIButton = {
        let btn = UIButton(frame: CGRect(x: 0, y: 0, width: 20, height: 20))
        btn.setImage(UIImage(named: "assetReceive"), for: UIControlState.normal)
        return btn
    }()
    lazy var sendBtn:UIButton = {
        let btn = UIButton(frame: CGRect(x: 0, y: 0, width: 20, height: 20))
        btn.setImage(UIImage(named: "assetSend"), for: UIControlState.normal)
        return btn
    }()
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        
        self.title = kText("比特币(BTC)")
        self.setBlackNavigationBar()
        self.hiddenNavgationBarLine(hidden: true)
        view.addSubview(coinTransView)
        coinTransView.snp.makeConstraints { (make) in
            make.top.left.bottom.right.equalToSuperview()
        }
        
        let item  = UIBarButtonItem(customView: receiveBtn)
        let sendItem = UIBarButtonItem(customView: sendBtn)
        self.navigationItem.rightBarButtonItems = [sendItem,item]
        
    }
    override func viewWillAppear(_ animated: Bool) {
        
        self.navigationController?.convention()
    }
    override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)
        self.navigationController?.defaultTheme()
    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
